import request from "@/utils/request";

// 列表
export function listTable(query) {
  return request({
    url: "/system/recycleCode/list",
    method: "get",
    params: query,
  });
}

// 详情
export function recycleCodeInfo(id) {
  return request({
    url: "/system/recycleCode/" + id,
    method: "get",
  });
}
export function recycleCode(data) {
  return request({
    url: "/system/recycleCode",
    method: "put",
    data,
  });
}

export function refreshCache() {
  return request({
    url: "/system/recycleCode/refreshCache",
    method: "delete",
  });
}